package com.hushan.elevator.service;

import com.hushan.elevator.model.Role;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author: zzy
 * @Date: 2024/10/22 23:39
 * @Title:
 * @Version:
 * @Package: com.hushan.elevator.service
 */
public interface RoleService {
    List<Role> findAllRoles();
    Role findRoleById(Integer id);
    List<Role> findRolesByCreatedBy(Integer createdBy);
    List<Role> findRolesByDeleted(Boolean deleted);
    List<Role> findRolesByCreatedTimeBetween(LocalDateTime start, LocalDateTime end);
    List<Role> findRolesByUpdatedTimeBetween(LocalDateTime start, LocalDateTime end);
    void saveRole(Role role);
    void deleteRole(Integer id);

    Role findRoleByUser(Integer userId);
}